<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://java.sun.com/jsf/composite"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	>

<ui:composition>
	
	<div id="page-wrap">
	<div id="contact-area">
	
	<h:panelGrid columns="3" styleClass="searchPanel">
		<h:dataTable  var="user" value="#{searchBean.userList}" >
			<h:column>
				<h:outputText value="#{user}"  styleClass="searchLink"></h:outputText>
			</h:column>	
		</h:dataTable>

		<h:dataTable var="isFriend" value="#{searchBean.isFriendList}" style="border-left:solid 2px;">
			<h:column >
				<h:outputLink value="index.xhtml" rendered="#{isFriend}" styleClass="searchLink" >
				 	Remove friend
				 	<f:param name="friendId" value="#{searchBean.getNextId()}"></f:param>
				 	<f:param name="filter" value="#{searchBean.filter}"></f:param>
				 	<f:param name="type" value="search"> </f:param>
				</h:outputLink>		
				<h:outputLink value="index.xhtml" rendered="#{!isFriend}" styleClass="searchLink" > 
					Add friend
				 	<f:param name="friendId" value="#{searchBean.getNextId()}"></f:param>
				 	<f:param name="filter" value="#{searchBean.filter}"></f:param>
				 	<f:param name="type" value="search"> </f:param>			 	
				</h:outputLink>
			</h:column>		
		</h:dataTable>
	
	</h:panelGrid>
	
	</div>
	</div>
</ui:composition>
</html>